package ro.msg.quiz.service;

import ro.msg.quiz.exception.MyException;

//AUTHORS: Elod, Razvan

//Interface for adding, deleting and updating a generic type in repository 
public interface IService<T> {

    void add(T t) throws MyException;

    void delete(String s) throws MyException;

    void update(T t) throws MyException;

    boolean exists(T t);

    int idGenerator();

}
